package com.yxt.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class TbUser {
    private Integer id;

    private String uname;

    private String upwd;

    private String email;

    private String phone;

    private Integer sex;

    private Integer state;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date creatTime;

    private Integer roleId;

    private TbCentre tbCentre;
    private TbPower tbPower;
    private TbRole tbRole;

    public TbCentre getTbCentre() {
        return tbCentre;
    }

    public void setTbCentre(TbCentre tbCentre) {
        this.tbCentre = tbCentre;
    }

    public TbPower getTbPower() {
        return tbPower;
    }

    public void setTbPower(TbPower tbPower) {
        this.tbPower = tbPower;
    }

    public TbRole getTbRole() {
        return tbRole;
    }

    public void setTbRole(TbRole tbRole) {
        this.tbRole = tbRole;
    }



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname == null ? null : uname.trim();
    }

    public String getUpwd() {
        return upwd;
    }

    public void setUpwd(String upwd) {
        this.upwd = upwd == null ? null : upwd.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }
}